using System;
using ASmile.ORM.Entitys;

namespace CR.DBModel
{
	public partial class VCom_RoleUser : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _UserId;
		/// <summary>
		/// UserId
		/// </summary>
		[Entity(ColumnName = CNUserId, IsNotNull = true)]
		public System.String UserId
		{
			get { return _UserId; }
			set
			{
				_UserId = value;
				base.SetFieldChanged(CNUserId) ;
			}
		}

		private System.String _EmpNo;
		/// <summary>
		/// EmpNo
		/// </summary>
		[Entity(ColumnName = CNEmpNo)]
		public System.String EmpNo
		{
			get { return _EmpNo; }
			set
			{
				_EmpNo = value;
				base.SetFieldChanged(CNEmpNo) ;
			}
		}

		private System.String _EmpName;
		/// <summary>
		/// EmpName
		/// </summary>
		[Entity(ColumnName = CNEmpName)]
		public System.String EmpName
		{
			get { return _EmpName; }
			set
			{
				_EmpName = value;
				base.SetFieldChanged(CNEmpName) ;
			}
		}

		private System.String _EmpNamePY;
		/// <summary>
		/// EmpNamePY
		/// </summary>
		[Entity(ColumnName = CNEmpNamePY)]
		public System.String EmpNamePY
		{
			get { return _EmpNamePY; }
			set
			{
				_EmpNamePY = value;
				base.SetFieldChanged(CNEmpNamePY) ;
			}
		}

		private System.String _RoleId;
		/// <summary>
		/// RoleId
		/// </summary>
		[Entity(ColumnName = CNRoleId, IsNotNull = true)]
		public System.String RoleId
		{
			get { return _RoleId; }
			set
			{
				_RoleId = value;
				base.SetFieldChanged(CNRoleId) ;
			}
		}

		private System.String _RoleName;
		/// <summary>
		/// RoleName
		/// </summary>
		[Entity(ColumnName = CNRoleName, IsNotNull = true)]
		public System.String RoleName
		{
			get { return _RoleName; }
			set
			{
				_RoleName = value;
				base.SetFieldChanged(CNRoleName) ;
			}
		}

		private System.Int32 _LastUse;
		/// <summary>
		/// LastUse
		/// </summary>
		[Entity(ColumnName = CNLastUse, IsNotNull = true)]
		public System.Int32 LastUse
		{
			get { return _LastUse; }
			set
			{
				_LastUse = value;
				base.SetFieldChanged(CNLastUse) ;
			}
		}

		private System.String _SexName;
		/// <summary>
		/// SexName
		/// </summary>
		[Entity(ColumnName = CNSexName)]
		public System.String SexName
		{
			get { return _SexName; }
			set
			{
				_SexName = value;
				base.SetFieldChanged(CNSexName) ;
			}
		}

		private System.DateTime? _Birthday;
		/// <summary>
		/// Birthday
		/// </summary>
		[Entity(ColumnName = CNBirthday)]
		public System.DateTime? Birthday
		{
			get { return _Birthday; }
			set
			{
				_Birthday = value;
				base.SetFieldChanged(CNBirthday) ;
			}
		}

		private System.String _PostName;
		/// <summary>
		/// PostName
		/// </summary>
		[Entity(ColumnName = CNPostName)]
		public System.String PostName
		{
			get { return _PostName; }
			set
			{
				_PostName = value;
				base.SetFieldChanged(CNPostName) ;
			}
		}

		private System.String _EmpTypeName;
		/// <summary>
		/// EmpTypeName
		/// </summary>
		[Entity(ColumnName = CNEmpTypeName)]
		public System.String EmpTypeName
		{
			get { return _EmpTypeName; }
			set
			{
				_EmpTypeName = value;
				base.SetFieldChanged(CNEmpTypeName) ;
			}
		}

		private System.String _LevlName;
		/// <summary>
		/// LevlName
		/// </summary>
		[Entity(ColumnName = CNLevlName)]
		public System.String LevlName
		{
			get { return _LevlName; }
			set
			{
				_LevlName = value;
				base.SetFieldChanged(CNLevlName) ;
			}
		}

		private System.DateTime _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(ColumnName = CNAddTime, IsNotNull = true)]
		public System.DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				_AddTime = value;
				base.SetFieldChanged(CNAddTime) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNUserId = "UserId";
		public const string CNEmpNo = "EmpNo";
		public const string CNEmpName = "EmpName";
		public const string CNEmpNamePY = "EmpNamePY";
		public const string CNRoleId = "RoleId";
		public const string CNRoleName = "RoleName";
		public const string CNLastUse = "LastUse";
		public const string CNSexName = "SexName";
		public const string CNBirthday = "Birthday";
		public const string CNPostName = "PostName";
		public const string CNEmpTypeName = "EmpTypeName";
		public const string CNLevlName = "LevlName";
		public const string CNAddTime = "AddTime";
		#endregion

	}
}
